<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
		// Instead of using data-dojo-config, we’re creating a dojoConfig object
		// *before* we load dojo.js; they’re functionally identical.
		var dojoConfig = {
			async: true,
			// This code registers the correct location of the "demo" package
			// so we can load Dojo from the CDN whilst still being able to
			// load local modules
			packages: [{
				name: "demo",
				location: "/JavaScrptDemo/page/dojo/js"
			}]
		};
</script>
<script type="text/javascript" src="/JavaScrptDemo/js/dojo/dojo.js"></script>
<title>Dojo HelloWorld</title>
<script>
		// Require the module we just created
		require(["demo/HelloWorld"], function(myModule){
			// Use our module to change the text in the greeting
			myModule.setText("greeting", "Hello Dojo!");

			// After a few seconds, restore the text to its original state
			setTimeout(function(){
				myModule.restoreText("greeting");
			}, 3000);
		});</script>
</head>
<body>
	<h1 id="greeting">Hello</h1>
</body>
</html>